<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateHuowusTable extends Migration
{
    //提交
    public function up()
    {
        Schema::create('huowus', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamps();
            $table->string('attr')->comment('货物属性|input');
            $table->integer('kucun')->comment('货物库存|input');
            $table->smallInteger('fujiaprice')->comment('附加价格|input');
            $table->string('good_id')->comment('商品id');
        });
    }
    //回滚
    public function down()
    {
        Schema::dropIfExists('huowus');
    }
}
